<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>数据显示页面</title>
</head>
<body>

<table>
    <tr>
        <td>商品名</td>
        <td>商品详情</td>
        <td>商品价格</td>
        <td>商品日期</td>
        <td>商品价格</td>
        <td>商品价格</td>
    </tr>
    <c:forEach items="${goodsList }" var="goods">
        <tr>
            <td>${goods.gname }</td>
            <td>${goods.gdescription }</td>
            <td>${goods.gprice }</td>
            <td><fmt:formatDate value="${goods.gdate }" pattern="yyyy-MM-dd"></fmt:formatDate></td>
            <td>${goods.gdate }</td>
            <td>${goods.bprice }</td>
            <td><fmt:formatNumber pattern="#,###.00" value="${goods.bprice }"></fmt:formatNumber></td>
        </tr>

    </c:forEach>
</table>
</body>